package com.songshan.dao;

import com.songshan.bean.Menu;
import com.songshan.bean.User;
import java.util.List;
import java.util.Map;

public interface UserMapper {

  User selectUserByCode(String username);

  User selectUserByCode2(String username);

  User selectUserByCode3(String username);

  List<User> selectAllUser(String username);

  List<User> selectUserByRole(Integer roleId);

  List<User> selectUserWithPage(Map<String, Object> param);

  User selectUserById(int id);

  void insertUser(User user);

  void updateUser(User user);

  void deleteUser(String username);

  void deleteUserById(int id);
}
